package com.css.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import com.css.config.vo.CodeGeneratorVo;
import com.css.config.vo.LoginVo;
import com.css.config.vo.SwaggerVo;
import com.css.config.vo.TaskVo;

import lombok.Data;

@Data
@Component
@Configuration
@ConfigurationProperties(prefix = "fresco")
public class FrescoProperties {

	/**
	 * 任务调度
	 */
	private TaskVo task;
	/**
	 * 邮箱验证码有效时间/秒
	 */
	private Integer mailCodeExpiration;
	
	/**
	 * 密码加密传输，前端公钥加密，后端私钥解密
	 */
	public RsaProperties rsa;
	
	/**
	 * 代码是否生成开启
	 */
	private CodeGeneratorVo generator;
	
	/**
	 * swagger是否开启
	 */
	private SwaggerVo swagger;
	
	/**
	 * 用户登录的缓存
	 */
	private LoginVo login;
}
